﻿namespace Lanbt.Core.Utility.ExceptionExtent
{
    public class ExceptionParam
    {
        public ExceptionParam()
        {

        }

        public ExceptionParam(int code,string message)
        {
            this.Code = code;
            this.Message = message;
        }

        public ExceptionParam(int code, string message,params object[] formats)
        {
            this.Code = code;
            this.Message = string.Format(message, formats);
        }

        /// <summary>
        /// 错误代码
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 错误描述
        /// </summary>
        public string Message { get; set; }
    }
}
